home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20041116-20060924
/
000136_slash_dev_slas…_2000@yahoo.com_Wed Aug 17 10:18:01 2005.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Path: newsmaster.cc.columbia.edu!panix!news.maxwell.syr.edu!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail
From: "Mark Sapiro" <slash_dev_slash_null_2000@yahoo.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Brace Style Affects Variable Expansion by ECHO
Date: 16 Aug 2005 12:10:55 -0700
Organization: http://groups.google.com
Lines: 53
Message-ID: <1124219455.123578.246130@f14g2000cwb.googlegroups.com>
References: <1123635685.649422.152630@z14g2000cwz.googlegroups.com>
NNTP-Posting-Host: 209.182.169.133
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1124219460 25608 127.0.0.1 (16 Aug 2005 19:11:00 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 16 Aug 2005 19:11:00 +0000 (UTC)
User-Agent: G2/0.2
Complaints-To: groups-abuse@google.com
Injection-Info: f14g2000cwb.googlegroups.com; posting-host=209.182.169.133;
posting-account=iQNWIg0AAAAD2fStXNC9nwGlPdSqjWrI
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15377
Allen wrote:
> While experimenting with different brace styles, I ran across a
> situation in which variables used within an ECHO string were not being
> expanded.
>
> The following test script,
> .\%j = 3
> for \%i 0 5 1 {
> IF < \%i \%j { ECHO \%i is less than \%j on \v(ndate)}
> ELSE { ECHO \%i is not less than \%j on \v(ndate)}
> }
>
> produces this output:
> [C:\temp\] K-95> take test1.ksc
> 0 is less than 3 on 20050809
> 1 is less than 3 on 20050809
> 2 is less than 3 on 20050809
> \%i is not less than \%j on \v(ndate)
> \%i is not less than \%j on \v(ndate)
> \%i is not less than \%j on \v(ndate)
>
> However if I just remove the braces in the ELSE statement,
> .\%j = 3
> for \%i 0 5 1 {
> IF < \%i \%j { ECHO \%i is less than \%j on \v(ndate)}
> ELSE ECHO \%i is not less than \%j on \v(ndate)
> }
>
> the script behaves as one would expect:
> [C:\temp\] K-95> take test2.ksc
> 0 is less than 3 on 20050809
> 1 is less than 3 on 20050809
> 2 is less than 3 on 20050809
> 3 is not less than 3 on 20050809
> 4 is not less than 3 on 20050809
> 5 is not less than 3 on 20050809
This is one manifestation of a larger problem that has existed for
quite some time. The problem was concidentally just fixed (on Aug 11)
in the C-Kermit source as part of another fix. See
http://www.columbia.edu/kermit/ckdaily.html
> I'm running Kermit 95 2.1.3, 1 Jan 2003 under Windows XP SP 2.
The fix has not yet made it into a Kermit 95 release. When a K-95
update is released, the fix will be there too.
--
Mark Sapiro msapiro at value net The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan